<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php $this->load->view('admin/header.html')?>
<script type="text/javascript" src="<?php echo base_url()?>common/js/additional-methods.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/validateForm.js"></script>
<script type="text/javascript">
    function Success(data) {
        $.Success(data);
    }
    $(function () {
        $.validate_user('ajax_form',2);
    });
</script>
<div id="dcMain">
    <!-- 当前位置 -->
    <div id="urHere">DouPHP 管理中心<b>></b><strong>网站管理员</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3><a href="<?php echo site_url('admin/user/userlist')?>" class="actionBtn">返回列表</a>网站管理员</h3>
        <form id="ajax_form" action="<?php echo site_url('admin/user/edit_user')?>" method="post">
           
            <input id="user_id" name="user_id" type="hidden" value="<?php echo !empty($userModel)?$userModel->user_id:0?>" />
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                <tr>
                    <td width="100" align="right">用户名</td>
                    <td>
                        <input type="text" id="user_account" name="user_account" size="40" class="inpMain" value="<?php echo !empty($userModel)?$userModel->user_account:""?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">真实名称</td>
                    <td>
                        <input type="text" id="user_name" name="user_name" size="40" class="inpMain"  value="<?php echo !empty($userModel)?$userModel->user_name:""?>" />                       
                    </td>
                </tr>
                <tr>
                    <td align="right">性别</td>
                    <td>
                        <label><input type="radio" name="user_gender" <?php echo !empty($userModel) && $userModel->user_gender==1?"checked='checked'":"" ?> value="1" /> 男</label>
                        <label><input type="radio" name="user_gender" <?php echo !empty($userModel) && $userModel->user_gender==2?"checked='checked'":"" ?> value="2" />女</label>
                    </td>
                </tr>
                <tr>
                    <td align="right">密码</td>
                    <td>
                        <input type="password" id="user_pass" name="user_pass" size="40" class="inpMain" value="" />
                        
                    </td>
                </tr>
                <tr>
                    <td align="right">确认密码</td>
                    <td>
                        <input type="password" id="passconf" name="passconf" size="40" class="inpMain" value="" />
                    </td>
                </tr>
                <tr>
                    <td align="right">联系电话</td>
                    <td>
                        <input type="text" id="user_tel" name="user_tel" size="40" class="inpMain" value="" />
                    </td>
                </tr>
                <tr>
                    <td align="right">联系手机</td>
                    <td>
                        <input type="text" id="user_phone" name="user_phone" size="40" class="inpMain" value="" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="submit" class="btn" value="修改" />
                        <input type="button" class="btn" value="返回" onclick="GoBack()" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>